// 引入工具类
import request from '@/utils/request.js'

const business = {
	merDetectionOrderGetAllCarReport: data => { // 检测所有检测的车辆
		return request({
			url: '/wx/merDetectionOrder/getAllCarReport',
			method: 'GET',
			data: data,
			isLoading: true,
			isLogin: true
		})
	},
	merDetectionOrderDetectionTypes: data => { // 获取订单检测大项列表
		return request({
			url: '/wx/merDetectionOrder/detectionTypes',
			method: 'GET',
			data: data,
			isLoading: true,
			isLogin: true
		})
	},
	merDetectionOrderGetOcrInfo: data => { // 车辆检测ocr识别行驶证
		return request({
			url: '/wx/merDetectionOrder/getOcrInfo',
			method: 'GET',
			data: data,
			isLoading: true,
			isLogin: false
		})
	},
	merDetectionOrderAddCarReport_jbxi: data => { // 订单保存报告-基本信息
		return request({
			url: '/wx/merDetectionOrder/addCarReport_jbxi',
			method: 'POST',
			data: data,
			contentType: 'application/x-www-form-urlencoded',
			isLoading: true,
			isLogin: false
		})
	},
	merDetectionOrderGetCarReport_jbxi: data => { // 获取-基本信息
		return request({
			url: '/wx/merDetectionOrder/getCarReport_jbxi',
			method: 'get',
			data: data,
			isLoading: true,
			isLogin: false
		})
	},

	merDetectionOrderGetCarReport_jcx: data => { // 获取报告-检测项信息
		return request({
			url: '/wx/merDetectionOrder/getCarReport_jcx',
			method: 'POST',
			data: data,
			contentType: 'application/x-www-form-urlencoded',
			isLoading: true,
			isLogin: false
		})
	},
	merDetectionOrderAddCarReport_jcx: data => { // 获取报告-检测项信息
		return request({
			url: '/wx/merDetectionOrder/addCarReport_jcx',
			method: 'POST',
			data: data,
			contentType: 'application/x-www-form-urlencoded',
			isLoading: true,
			isLogin: false
		})
	},

merDetectionOrderAddCarReport_tj: data => { // 整体提交
		return request({
			url: '/wx/merDetectionOrder/addCarReport_tj',
			method: 'get',
			data: data,
			isLoading: true,
			isLogin: false
		})
	},
}

export default business
